export default class AccRoleRelVO  { 
  roleName!:string;
  orgName!:string;
  roleStatus!:EnumStruct<RoleEnum_Status>;
  roleId!:string;
  orgId!:string;
  accRoleId!:string;
  accId!:string;
  addUser!:string;
  addTime!:string;
  updUser!:string;
  updTime!:string;
  serialVersionUID!:null;


  /**通过JSONObject创建实例对象 */
  public static getInstanceByJSONObj(jsonObj:any):AccRoleRelVO{  
    let instance=new AccRoleRelVO()  
    return Object.assign(instance, jsonObj) 
  }


  /** 通过属性参数创建实例对象 */
  public static getInstanceByParam(roleName:string,orgName:string
                                   ,roleStatus:EnumStruct<RoleEnum_Status>,roleId:string
                                   ,orgId:string,accRoleId:string
                                   ,accId:string,addUser:string
                                   ,addTime:string,updUser:string
                                   ,updTime:string,serialVersionUID:null){ 
    let instance=new AccRoleRelVO()  
    instance.roleName=roleName;
    instance.orgName=orgName;
    instance.roleStatus=roleStatus;
    instance.roleId=roleId;
    instance.orgId=orgId;
    instance.accRoleId=accRoleId;
    instance.accId=accId;
    instance.addUser=addUser;
    instance.addTime=addTime;
    instance.updUser=updUser;
    instance.updTime=updTime;
    instance.serialVersionUID=serialVersionUID;
    return instance 
  }


  /** 类属性的申明静态变量(适用于直接用到Class.fieldName的场景) */
   static fieldNames={
       roleName:"roleName",
      orgName:"orgName",
      roleStatus:{code:"roleStatus.code",value:"roleStatus.value",this:"roleStatus"},
      roleId:"roleId",
      orgId:"orgId",
      accRoleId:"accRoleId",
      accId:"accId",
      addUser:"addUser",
      addTime:"addTime",
      updUser:"updUser",
      updTime:"updTime",
      serialVersionUID:"serialVersionUID" } 
}

